Research Topic: Electric Vehicle Statistics in Washington Project Idea: Analyze electric vehicle consumers

Team Members: Vedant Pungliya, Michaela Beck, Ekaterina Kurkalova

Questions to be addressed:

  1. What vehicle brand is most popular for consumers? (top 20) Histogram / bar chart showing the car brand and quantity purchased. Who dominates the EVs market?

  2. What brands are the trends for consumers over the years?

  3. What brand has the highest fuel range? Is fuel range a selling point for consumers?

  4. Average age of EV? How has the electric range changed based on model year?

  5. Does the electric vehicle type matter to consumers BEV, PHEV? Which vehicle type has better electric range?

  6. Compare zip codes with quantities of EVs within different areas of the city. Will demonstrate where in the city EVs are most popular?

## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.4     ✔ readr     2.1.5
## ✔ forcats   1.0.0     ✔ stringr   1.5.1
## ✔ lubridate 1.9.3     ✔ tibble    3.2.1
## ✔ purrr     1.0.2     ✔ tidyr     1.3.1
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

Cleaning the data:

##      County      City State Postal.Code Model.Year  Make   Model
## 1      King   Seattle    WA       98122       2020 TESLA MODEL Y
## 2 Snohomish   Bothell    WA       98021       2023 TESLA MODEL Y
## 3      King   Seattle    WA       98109       2019 TESLA MODEL S
## 4      King  Issaquah    WA       98027       2016 TESLA MODEL S
## 5    Kitsap Suquamish    WA       98392       2021 TESLA MODEL Y
## 6  Thurston      Yelm    WA       98597       2017  FORD  FUSION
##                    Electric.Vehicle.Type
## 1         Battery Electric Vehicle (BEV)
## 2         Battery Electric Vehicle (BEV)
## 3         Battery Electric Vehicle (BEV)
## 4         Battery Electric Vehicle (BEV)
## 5         Battery Electric Vehicle (BEV)
## 6 Plug-in Hybrid Electric Vehicle (PHEV)
##              Clean.Alternative.Fuel.Vehicle..CAFV..Eligibility Electric.Range
## 1                      Clean Alternative Fuel Vehicle Eligible            291
## 2 Eligibility unknown as battery range has not been researched              0
## 3                      Clean Alternative Fuel Vehicle Eligible            270
## 4                      Clean Alternative Fuel Vehicle Eligible            210
## 5 Eligibility unknown as battery range has not been researched              0
## 6                        Not eligible due to low battery range             21
##   Base.MSRP              Vehicle.Location
## 1         0  POINT (-122.30839 47.610365)
## 2         0 POINT (-122.179458 47.802589)
## 3         0  POINT (-122.34848 47.632405)
## 4         0  POINT (-122.03646 47.534065)
## 5         0  POINT (-122.55717 47.733415)
## 6         0   POINT (-122.61023 46.94126)

We loaded and installed the libraries and packages necessary to perform our analysis. The libraries and packages included, ggplot2, tidyverse, dplyr, forcats, readr, and leaflet. Our data set was found on Data.Gov. It describes battery and plug- in hybrid electric vehicles registered through the Washington State Department of Licensing. We cleaned the data by filtering to only display vehicles still in Washington State. We removed the ‘X2020.Census.Tract’, ‘DOL.Vehicle.ID’, ‘Legislative.District’, ‘VIN..1.10.’, and ‘Electric.Utility’ columns that were unnecessary for our analysis.

1. What vehicle brand is most popular for consumers? (top 20) Histogram/bar chart showing the car brand and quantity purchased. Who dominates the EV market?

You can see in the bar chart above that the Tesla car brand dominates the market. The number of EVs purchased from Tesla is nearly four times that of its leading competitors, with its number of car purchases reaching around 80,000. The next popular car brand from consumers next to Tesla is Nissan and Chevrolet. The number of cars on the market for Nissan and Chevrolet are very similar, with the number of purchases reported for the brands being around 15,000 each. The other car brands shown on the bar chart are all within a similar range of sales, between 1,000 and 10,000 for the leading car brands.

2. What brands are the trends for consumers over the years?

## `summarise()` has grouped output by 'Model.Year'. You can override using the
## `.groups` argument.

Over the years, many car brands have stayed consistent in their sales. Tesla has quickly risen in popularity. Around 2019, the number of sales took flight and increased significantly faster than its competitors. Based on the quick incline in Tesla’s sales, their electric vehicles appear to be what consumers are looking for and choosing over their competitors. It is worth noting Chevrolet had a spike in sales around 2019 but dropped back down to its regular levels a few years later.

3) What brand has the highest fuel range? Is fuel range a selling point for consumers?

Out of the top brands for EVs, Tesla has the top average fuel range. We can see in the bar chart above that Tesla’s fuel range reaches nearly 250 miles while its next competitor, Chevrolet, has a fuel range of around 140. Based on the data, Tesla has a significantly more extensive average fuel range. Leading competitors like Volkswagen, Nissan, Kia, and Audi are similar, with around 90-120 miles of fuel range. Tesla’s fuel range is nearly double the fuel range of its competitors. With Tesla having significantly higher sales than any other EV car brand, Tesla’s higher fuel range is likely a selling point for consumers.

We can see in the scatterplot above a positive relationship between Total Sales and Average Fuel Range. As the fuel range increases, the total number of sales increases as well. We can see the Tesla(Blue dot) at the top, with a significant distance between it and the leading car brands. The leading competitors, such as Nissan(Light Blue) and Chevrolet(white), are also moving in a positive direction upward, with the fuel range positively influencing the total sales.

4) What is the average age of EV? How has the ‘Electric.Range’ changed based on model year?

##       mean median  min  max
## 1 2020.517   2022 1997 2024

The spread of EV model year is skewed left with a mode of cars being a 2023 model by around double the previous year. There was a small spike in sales of 2018 EV models shortly before the rapid increase began around 2021. The boxplot shows a clearer spread, with any model before 2013 being an outlier and the earliest model being before 2000. This gives the impression that EVs became popular around 2018 and also that there is potentially insufficient data for 2024 vehicles.

Here we see the average electric range of electric vehicles for each model year. No consumers reported their electric range for 2011, 2004-2007, and 2009 models. The highest average electric range, in miles, is for the 2020 model which makes sense because the 2020 Tesla Model S has the highest reported range at 337 miles and has 76 instances, which brings the average up.

5. Does the electric vehicle type matter to consumers? Which vehicle type has better electric range?

## [1] "Battery Electric Vehicle (BEV)"        
## [2] "Plug-in Hybrid Electric Vehicle (PHEV)"

Based on the bar chart most electric vehicles were Battery electric vehicles instead of Plug-in Hybrid electric vehicles. The amount of Battery Electric vehicles in the data was approximately three times that of Plug-in Hybrid electric vehicles. Because of this there is potential for further analysis in whether the vehicle type is a deciding factor for consumers.

The box plot shows that Battery electric vehicles (BEV) have a better range than Plug-in Hybrid Electric vehicles (PHEV). However, the range of electric mileage is more spread out for BEV’s than PHEVs which means that hybrids have less variation in this category. The average range for BEVs is over 200 miles which is significantly more than the average PHEV range of approximately 25 miles. The box plot presents no outliers for BEVs while there are five outliers presented for PHEVs

6. How does location in Washington influence the amount of EVs?

In Washington, there is a wide distribution of EVs across the state. Based on the map above, there is the greatest amount of EVs on the state’s western side in the Seattle and Tacoma area. The concentration of EVs follows along I-90 from the state capitol, Olympia, up to Everett. The areas with a high density of EVs are urban areas close to the northwestern coast of Washington. On the state’s eastern side, there is also a high concentration of EVs around Spokane. The map shows a high concentration of EVs in urban areas or larger cities with more people. In Washington state, the western side has the most significant EVs compared to the rest.